﻿@inherits RenderViewPage
@using Umbraco.Cms.Web;
@using PBDesk.com.Extension.UmbHelper;
@using PBDesk.com.Extension.Articles;
@{
    string moreArticles = string.Empty;
    string linkFormat = "<a href=\"{0}\" title=\"Goto {1} Articles\" >{2}</a>";
    foreach (var page in MyHelper.GetHomeNode(DynamicModel).ArticlesGatewayPages)
    {
        if (page.Id != DynamicModel.Id)
        {
            if (moreArticles.Length > 0)
            {
                moreArticles += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
            }
            moreArticles += String.Format(linkFormat, page.Url, page.Name, page.Name);
        }
    }
} 
<h1 class="servicetitle">More Articles: By Category</h1>
<div>@Html.Raw(moreArticles)</div>